<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>转账</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body class="bg-light p-5">
<div class="container bg-white p-4 rounded shadow">
    <h2>账户转账</h2>
    {% with messages = get_flashed_messages() %}
    {% if messages %}
        <div class="alert alert-info mt-3">
            {% for msg in messages %} {{ msg }} {% endfor %}
        </div>
    {% endif %}
    {% endwith %}
    <form method="POST">
        <div class="mb-3">
            <label>收款卡号：</label>
            <input type="text" name="to_card" class="form-control" required>
        </div>
        <div class="mb-3">
            <label>转账金额：</label>
            <input type="number" step="0.01" name="amount" class="form-control" required>
        </div>
        <div class="mb-3">
            <label>交易密码：</label>
            <input type="password" name="password" class="form-control" required>
        </div>
        <button type="submit" class="btn btn-primary">确认转账</button>
        <a href="{{ url_for('customer.dashboard') }}" class="btn btn-secondary">返回</a>
    </form>
</div>
</body>
</html>
